package com.quwancode.springboot.mybatis.mapper;

import com.quwancode.springboot.mybatis.model.Student;
import org.apache.ibatis.annotations.Mapper;

//@Mapper // 扫描DAO接口到Spring容器；如果去掉，需要在启动程序入口那个地方进行配置扫描；
public interface StudentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);
}